package com.qk.command;

import com.qk.my.pojos.Player;

public abstract class CommandFactory {
	public enum CommandCode {
		// System
		LOGIN, SIGNUP, HELP, EXIT,
		// Player
		ANSWER, QUESTION, LIST, ASK, SCORE, ACCEPT
	}

	public static CommandFactory buildFactory(Player player) {

		if (player == null) {
			return new SystemFactory();
		}
		return new PlayerFactory(player);
	}

	public abstract Command buildCommand(CommandCode code);

}
